<?php
$this->load->helper('HTML');
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>

<div id="page1">
        
<div id="wrapper">
	<?php $this->load->view('admin_views/header'); ?><hr />
</div>
<div id="page">
        <div id="page-bgtop">
            <div id="content">
			<div class="post">	<h2 class="title">&nbsp;</h2>
          <table width="624" cellpadding="5" align="center">
	<?php
	    $banyak = count($nama_dealer->result_array());
	    echo '<tr><td>Ditemukan <b>'.$banyak.'</b> hasil pencarian dengan kata <b>"'.$nama.'"</b></td></tr>';
	    if(count($nama_dealer->result_array())>0)
	    {
	        foreach($nama_dealer->result_array() as $nd)
	        {
	            echo '<tr><td>&raquo; '.$nd['strnama_dealer'].'</td></tr>';
	        }
	    }
	    else
	    {
	        echo '<tr><td>Tidak ditemukan dealer dengan nama <b>"'.$nama.'"</b></td></tr>';
	    }
	?>
	<tr><td><?php echo $paginator; ?></td></tr>
	</table>
     <div class="entry">      
                   <div class="maindealer">
				
			  </div>
			</div></div>
			</div>
		<!-- end #content -->
		<?php $this->load->view('admin_views/sidebar_master'); ?><!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer-bgcontent">
	<?php $this->load->view('admin_views/footer'); ?></div>
	<!-- end #footer -->
